package com.mapper.auto;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.model.auto.MajorV2;
import com.model.auto.vo.GetSchoolV2Vo;
import com.model.auto.vo.GetSchoolVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author astupidcoder
 * @since 2022-09-14
 */
@Mapper
@Repository
public interface MajorV2Mapper extends BaseMapper<MajorV2> {
    List<MajorV2> getMajorNameList();

    List<MajorV2> getByTypeAndName(@Param("type") String type, @Param("name") String name);

    MajorV2 selectByParams(@Param("code") String code,@Param("groupCode") String groupCode,@Param("majorCode") String majorCode);

    List<Long> selectSchoolId(@Param("getSchoolVo") GetSchoolV2Vo getSchoolVo);

    List<Long> selectMajorSchoolId(@Param("majorType") Integer majorType, @Param("batch") String batch, @Param("majors") List<String> majors);
}
